# 不使用列表推导
example_list_01 = []
for i in range(10):
   example_list_01.append(i)

# 列表推导
example_list_02 = [i for i in range(10)]



if __name__ == "__main__":
    print(example_list_01) #[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
    print(example_list_02) #[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

